import request from '@/utils/request'
// 获取房间列表
export const getRoomListAPI = () => {
  return request({
    url: '/hotel/room',
    method: 'GET'
  })
}
// 增加房间列表
export const addRoomListAPI = () => {
  return request({
    url: '',
    method: 'POST'
  })
}
// 通过id获取房间列表
export const getRoomListByIdAPI = () => {
  return request({
    url: '',
    method: 'GET'
  })
}
// 删除房间
export const delRoomListAPI = () => {
  return request({
    url: '',
    method: 'POST'
  })
}
// 房间入住

// 房间退房
// 通过房间id获取订单信息
export const getRoomByRoomIdAPI = (id) => {
  return request({
    url: `/reservation/${id}`,
    method: 'GET'
  })
}
